﻿// MT549




using Little.Soldier.SWIFT;
using Little.Soldier.SWIFT.Definition;
using System.Collections.Generic;
using System.ComponentModel;

namespace Little.Soldier.SWIFT.Messages.Category5
{
  public class MT549 : SwiftMessage
  {
    private static SwiftMessageDefinition MessageDefinition;
    private static SwiftTagSequenceDefinition U0002;
    private static SwiftTagDefinition U0003;
    private static SwiftTagSubItemDefinition U0004;
    private static SwiftTagDefinition U0005;
    private static SwiftTagSubItemDefinition U0006;
    private static SwiftTagSubItemDefinition U0007;
    private static SwiftTagDefinition U0008;
    private static SwiftTagSubItemDefinition U000E;
    private static SwiftTagSubItemDefinition U000F;
    private static SwiftTagChoiceDefinition U0010;
    private static SwiftTagDefinition U0011;
    private static SwiftTagSubItemDefinition U0012;
    private static SwiftTagSubItemDefinition U0013;
    private static SwiftTagDefinition U0014;
    private static SwiftTagSubItemDefinition U0015;
    private static SwiftTagSubItemDefinition U0016;
    private static SwiftTagSubItemDefinition U0017;
    private static SwiftTagSubItemDefinition U0018;
    private static SwiftTagChoiceDefinition U0019;
    private static SwiftTagDefinition U001A;
    private static SwiftTagSubItemDefinition U001B;
    private static SwiftTagSubItemDefinition U001C;
    private static SwiftTagSubItemDefinition U001D;
    private static SwiftTagSubItemDefinition U001E;
    private static SwiftTagDefinition U001F;
    private static SwiftTagSubItemDefinition U007F;
    private static SwiftTagSubItemDefinition U0080;
    private static SwiftTagSubItemDefinition U0081;
    private static SwiftTagSubItemDefinition U0082;
    private static SwiftTagSubItemDefinition U0083;
    private static SwiftTagSubItemDefinition U0084;
    private static SwiftTagSubItemDefinition U0086;
    private static SwiftTagSubItemDefinition U0087;
    private static SwiftTagDefinition U0088;
    private static SwiftTagSubItemDefinition U0089;
    private static SwiftTagSubItemDefinition U008A;
    private static SwiftTagChoiceDefinition U008B;
    private static SwiftTagDefinition U008C;
    private static SwiftTagSubItemDefinition U008D;
    private static SwiftTagSubItemDefinition U008E;
    private static SwiftTagDefinition U008F;
    private static SwiftTagSubItemDefinition U0090;
    private static SwiftTagSubItemDefinition U0091;
    private static SwiftTagSubItemDefinition U0092;
    private static SwiftTagChoiceDefinition U0093;
    private static SwiftTagDefinition U0094;
    private static SwiftTagSubItemDefinition U0095;
    private static SwiftTagSubItemDefinition U0096;
    private static SwiftTagDefinition U0097;
    private static SwiftTagSubItemDefinition U0098;
    private static SwiftTagSubItemDefinition U0099;
    private static SwiftTagSubItemDefinition U009A;
    private static SwiftTagSubItemDefinition U009B;
    private static SwiftTagDefinition U009C;
    private static SwiftTagSubItemDefinition U009D;
    private static SwiftTagSubItemDefinition U009E;
    private static SwiftTagSubItemDefinition U009F;
    private static SwiftTagSequenceDefinition U0001U0002;
    private static SwiftTagDefinition U0002U0002;
    private static SwiftTagSubItemDefinition U0003U0002;
    private static SwiftTagChoiceDefinition U0004U0002;
    private static SwiftTagDefinition U0005U0002;
    private static SwiftTagSubItemDefinition U0006U0002;
    private static SwiftTagSubItemDefinition U0007U0002;
    private static SwiftTagDefinition U0008U0002;
    private static SwiftTagSubItemDefinition U000EU0002;
    private static SwiftTagSubItemDefinition U000FU0002;
    private static SwiftTagSubItemDefinition U0010U0002;
    private static SwiftTagDefinition U0011U0002;
    private static SwiftTagSubItemDefinition U0012U0002;
    private static SwiftTagSubItemDefinition U0013U0002;
    private static SwiftTagDefinition U0014U0002;
    private static SwiftTagSubItemDefinition U0015U0002;
    private static SwiftTagDefinition U0016U0002;
    private static SwiftTagSubItemDefinition U0017U0002;
    private static SwiftTagSequenceDefinition U0018U0002;
    private static SwiftTagDefinition U0019U0002;
    private static SwiftTagSubItemDefinition U001AU0002;
    private static SwiftTagDefinition U001BU0002;
    private static SwiftTagSubItemDefinition U001CU0002;
    private static SwiftTagSubItemDefinition U001DU0002;
    private static SwiftTagSubItemDefinition U001EU0002;
    private static SwiftTagDefinition U001FU0002;
    private static SwiftTagSubItemDefinition U007FU0002;
    private static SwiftTagSubItemDefinition U0080U0002;
    private static SwiftTagSubItemDefinition U0081U0002;
    private static SwiftTagDefinition U0082U0002;
    private static SwiftTagSubItemDefinition U0083U0002;
    private static SwiftTagSubItemDefinition U0084U0002;
    private static SwiftTagSubItemDefinition U0086U0002;
    private static SwiftTagDefinition U0087U0002;
    private static SwiftTagSubItemDefinition U0088U0002;
    private static SwiftTagSequenceDefinition U0089U0002;
    private static SwiftTagDefinition U008AU0002;
    private static SwiftTagSubItemDefinition U008BU0002;
    private static SwiftTagDefinition U008CU0002;
    private static SwiftTagSubItemDefinition U008DU0002;
    private static SwiftTagSubItemDefinition U008EU0002;
    private static SwiftTagDefinition U008FU0002;
    private static SwiftTagSubItemDefinition U0090U0002;
    private static SwiftTagSequenceDefinition U0091U0002;
    private static SwiftTagDefinition U0092U0002;
    private static SwiftTagSubItemDefinition U0093U0002;
    private static SwiftTagChoiceDefinition U0094U0002;
    private static SwiftTagDefinition U0095U0002;
    private static SwiftTagSubItemDefinition U0096U0002;
    private static SwiftTagSubItemDefinition U0097U0002;
    private static SwiftTagDefinition U0098U0002;
    private static SwiftTagSubItemDefinition U0099U0002;
    private static SwiftTagSubItemDefinition U009AU0002;
    private static SwiftTagDefinition U009BU0002;
    private static SwiftTagSubItemDefinition U009CU0002;
    private static SwiftTagSubItemDefinition U009DU0002;
    private static SwiftTagSubItemDefinition U009EU0002;
    private static SwiftTagDefinition U009FU0002;
    private static SwiftTagSubItemDefinition U0001U0003;

    [Description("General Information")]
    public MT549.SequenceAClass SequenceA
    {
      get
      {
        return new MT549.SequenceAClass((SwiftElement) this, 0, false);
      }
    }

    [Description("Statement by Status / Reason")]
    public MT549.SequenceBClass[] SequenceB
    {
      get
      {
        int index = -1;
        List<MT549.SequenceBClass> list = new List<MT549.SequenceBClass>();
        int count;
        do
        {
          ++index;
          MT549.SequenceBClass sequenceBclass = new MT549.SequenceBClass((SwiftElement) this, index, false);
          count = this.ListTags((SwiftElement) sequenceBclass).Count;
          if (count > 0)
            list.Add(sequenceBclass);
        }
        while (count > 0);
        return list.ToArray();
      }
    }

    [Description("Instruction Reference")]
    public MT549.SequenceCClass[] SequenceC
    {
      get
      {
        int index = -1;
        List<MT549.SequenceCClass> list = new List<MT549.SequenceCClass>();
        int count;
        do
        {
          ++index;
          MT549.SequenceCClass sequenceCclass = new MT549.SequenceCClass((SwiftElement) this, index, false);
          count = this.ListTags((SwiftElement) sequenceCclass).Count;
          if (count > 0)
            list.Add(sequenceCclass);
        }
        while (count > 0);
        return list.ToArray();
      }
    }

    [Description("Additional Information")]
    public MT549.SequenceDClass SequenceD
    {
      get
      {
        MT549.SequenceDClass sequenceDclass = new MT549.SequenceDClass((SwiftElement) this, 0, false);
        if (this.ListTags((SwiftElement) sequenceDclass).Count > 0)
          return sequenceDclass;
        else
          return (MT549.SequenceDClass) null;
      }
    }

    public MT549()
      : base(true)
    {
    }

    public MT549(SwiftMessage message)
      : base(message)
    {
    }

    public MT549.SequenceBClass AddSequenceB()
    {
      return new MT549.SequenceBClass((SwiftElement) this, this.SequenceB.Length, true);
    }

    public void RemoveSequenceB(MT549.SequenceBClass sequence)
    {
      foreach (SwiftTag tag in this.ListTags((SwiftElement) sequence))
        this.RemoveTag(tag);
    }

    public MT549.SequenceCClass AddSequenceC()
    {
      return new MT549.SequenceCClass((SwiftElement) this, this.SequenceC.Length, true);
    }

    public void RemoveSequenceC(MT549.SequenceCClass sequence)
    {
      foreach (SwiftTag tag in this.ListTags((SwiftElement) sequence))
        this.RemoveTag(tag);
    }

    public MT549.SequenceDClass AddSequenceD()
    {
      return this.SequenceD ?? new MT549.SequenceDClass((SwiftElement) this, 0, true);
    }

    public void RemoveSequenceD(MT549.SequenceDClass sequence)
    {
      foreach (SwiftTag tag in this.ListTags((SwiftElement) sequence))
        this.RemoveTag(tag);
    }

    internal override SwiftMessageDefinition MsgDefinition()
    {
      return MT549.MessageDefinition;
    }

    protected override void InitSwiftMessageDefinition()
    {
      MT549.MessageDefinition = new SwiftMessageDefinition("MT549", "Request for Statement/Status Advice");
      MT549.U0002 = new SwiftTagSequenceDefinition("SequenceA", "General Information");
      MT549.U0003 = new SwiftTagDefinition("StartOfBlock_A_16R", "Start of Block");
      MT549.U0003.TagName = ":16R:GENL";
      MT549.U0004 = new SwiftTagSubItemDefinition("StartOfBlock", "Start of Block");
      MT549.U0004.Mandatory = false;
      MT549.U0003.Elements.Add((SwiftDefinitionElement) MT549.U0004);
      MT549.U0002.Elements.Add((SwiftDefinitionElement) MT549.U0003);
      MT549.U0005 = new SwiftTagDefinition("Reference_A_20C", "Reference");
      MT549.U0005.TagName = ":20C::";
      MT549.U0006 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT549.U0005.Elements.Add((SwiftDefinitionElement) MT549.U0006);
      MT549.U0007 = new SwiftTagSubItemDefinition("Reference", "Reference");
      MT549.U0005.Elements.Add((SwiftDefinitionElement) MT549.U0007);
      MT549.U0002.Elements.Add((SwiftDefinitionElement) MT549.U0005);
      MT549.U0008 = new SwiftTagDefinition("FunctionOfTheMessage_A_23G", "Function of the Message");
      MT549.U0008.TagName = ":23G:";
      MT549.U000E = new SwiftTagSubItemDefinition("Function", "Function");
      MT549.U0008.Elements.Add((SwiftDefinitionElement) MT549.U000E);
      MT549.U000F = new SwiftTagSubItemDefinition("Subfunction", "Subfunction");
      MT549.U000F.Mandatory = false;
      MT549.U0008.Elements.Add((SwiftDefinitionElement) MT549.U000F);
      MT549.U0002.Elements.Add((SwiftDefinitionElement) MT549.U0008);
      MT549.U0010 = new SwiftTagChoiceDefinition("Choice", "");
      MT549.U0010.Mandatory = false;
      MT549.U0010.Multiple = true;
      MT549.U0011 = new SwiftTagDefinition("Date_A_98A", "Date/Time");
      MT549.U0011.TagName = ":98A::";
      MT549.U0012 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT549.U0011.Elements.Add((SwiftDefinitionElement) MT549.U0012);
      MT549.U0013 = new SwiftTagSubItemDefinition("Date", "Date");
      MT549.U0011.Elements.Add((SwiftDefinitionElement) MT549.U0013);
      MT549.U0010.Elements.Add((SwiftDefinitionElement) MT549.U0011);
      MT549.U0014 = new SwiftTagDefinition("DateTime_A_98C", "Date/Time");
      MT549.U0014.TagName = ":98C::";
      MT549.U0015 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT549.U0014.Elements.Add((SwiftDefinitionElement) MT549.U0015);
      MT549.U0016 = new SwiftTagSubItemDefinition("DateTime", "");
      MT549.U0017 = new SwiftTagSubItemDefinition("Date", "Date");
      MT549.U0016.Elements.Add((SwiftDefinitionElement) MT549.U0017);
      MT549.U0018 = new SwiftTagSubItemDefinition("Time", "Time");
      MT549.U0016.Elements.Add((SwiftDefinitionElement) MT549.U0018);
      MT549.U0014.Elements.Add((SwiftDefinitionElement) MT549.U0016);
      MT549.U0010.Elements.Add((SwiftDefinitionElement) MT549.U0014);
      MT549.U0002.Elements.Add((SwiftDefinitionElement) MT549.U0010);
      MT549.U0019 = new SwiftTagChoiceDefinition("Choice", "");
      MT549.U0019.Mandatory = false;
      MT549.U0019.Multiple = true;
      MT549.U001A = new SwiftTagDefinition("Date_A_69A", "Date/Time");
      MT549.U001A.TagName = ":69A::";
      MT549.U001B = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT549.U001A.Elements.Add((SwiftDefinitionElement) MT549.U001B);
      MT549.U001C = new SwiftTagSubItemDefinition("Date", "");
      MT549.U001D = new SwiftTagSubItemDefinition("Date1", "Date");
      MT549.U001C.Elements.Add((SwiftDefinitionElement) MT549.U001D);
      MT549.U001E = new SwiftTagSubItemDefinition("Date2", "Date");
      MT549.U001C.Elements.Add((SwiftDefinitionElement) MT549.U001E);
      MT549.U001A.Elements.Add((SwiftDefinitionElement) MT549.U001C);
      MT549.U0019.Elements.Add((SwiftDefinitionElement) MT549.U001A);
      MT549.U001F = new SwiftTagDefinition("DateTime_A_69B", "Date/Time");
      MT549.U001F.TagName = ":69B::";
      MT549.U007F = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT549.U001F.Elements.Add((SwiftDefinitionElement) MT549.U007F);
      MT549.U0080 = new SwiftTagSubItemDefinition("DateTime", "");
      MT549.U0081 = new SwiftTagSubItemDefinition("DateTime1", "");
      MT549.U0082 = new SwiftTagSubItemDefinition("Date", "Date");
      MT549.U0081.Elements.Add((SwiftDefinitionElement) MT549.U0082);
      MT549.U0083 = new SwiftTagSubItemDefinition("Time", "Time");
      MT549.U0081.Elements.Add((SwiftDefinitionElement) MT549.U0083);
      MT549.U0080.Elements.Add((SwiftDefinitionElement) MT549.U0081);
      MT549.U0084 = new SwiftTagSubItemDefinition("DateTime2", "");
      MT549.U0086 = new SwiftTagSubItemDefinition("Date", "Date");
      MT549.U0084.Elements.Add((SwiftDefinitionElement) MT549.U0086);
      MT549.U0087 = new SwiftTagSubItemDefinition("Time", "Time");
      MT549.U0084.Elements.Add((SwiftDefinitionElement) MT549.U0087);
      MT549.U0080.Elements.Add((SwiftDefinitionElement) MT549.U0084);
      MT549.U001F.Elements.Add((SwiftDefinitionElement) MT549.U0080);
      MT549.U0019.Elements.Add((SwiftDefinitionElement) MT549.U001F);
      MT549.U0002.Elements.Add((SwiftDefinitionElement) MT549.U0019);
      MT549.U0088 = new SwiftTagDefinition("NumberIdentification_A_13A", "Number Identification");
      MT549.U0088.TagName = ":13A::";
      MT549.U0089 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT549.U0088.Elements.Add((SwiftDefinitionElement) MT549.U0089);
      MT549.U008A = new SwiftTagSubItemDefinition("NumberId", "Number");
      MT549.U0088.Elements.Add((SwiftDefinitionElement) MT549.U008A);
      MT549.U0002.Elements.Add((SwiftDefinitionElement) MT549.U0088);
      MT549.U008B = new SwiftTagChoiceDefinition("Choice", "");
      MT549.U008B.Mandatory = false;
      MT549.U008B.Multiple = true;
      MT549.U008C = new SwiftTagDefinition("Party_A_95P", "Account Owner");
      MT549.U008C.TagName = ":95P::";
      MT549.U008D = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT549.U008C.Elements.Add((SwiftDefinitionElement) MT549.U008D);
      MT549.U008E = new SwiftTagSubItemDefinition("BankIdentifier", "Bank Identifier Code");
      MT549.U008C.Elements.Add((SwiftDefinitionElement) MT549.U008E);
      MT549.U008B.Elements.Add((SwiftDefinitionElement) MT549.U008C);
      MT549.U008F = new SwiftTagDefinition("Party_A_95R", "Account Owner");
      MT549.U008F.TagName = ":95R::";
      MT549.U0090 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT549.U008F.Elements.Add((SwiftDefinitionElement) MT549.U0090);
      MT549.U0091 = new SwiftTagSubItemDefinition("DataSourceSchemeType", "Data Source Scheme with a maximum of 8 characters");
      MT549.U008F.Elements.Add((SwiftDefinitionElement) MT549.U0091);
      MT549.U0092 = new SwiftTagSubItemDefinition("ProprietaryCodeType", "Proprietary Code Type");
      MT549.U008F.Elements.Add((SwiftDefinitionElement) MT549.U0092);
      MT549.U008B.Elements.Add((SwiftDefinitionElement) MT549.U008F);
      MT549.U0002.Elements.Add((SwiftDefinitionElement) MT549.U008B);
      MT549.U0093 = new SwiftTagChoiceDefinition("Choice", "");
      MT549.U0093.Multiple = true;
      MT549.U0094 = new SwiftTagDefinition("Account_A_97A", "Account");
      MT549.U0094.TagName = ":97A::";
      MT549.U0095 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT549.U0094.Elements.Add((SwiftDefinitionElement) MT549.U0095);
      MT549.U0096 = new SwiftTagSubItemDefinition("AccountNumber", "AccountNumber");
      MT549.U0094.Elements.Add((SwiftDefinitionElement) MT549.U0096);
      MT549.U0093.Elements.Add((SwiftDefinitionElement) MT549.U0094);
      MT549.U0097 = new SwiftTagDefinition("Account_A_97B", "Account");
      MT549.U0097.TagName = ":97B::";
      MT549.U0098 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT549.U0097.Elements.Add((SwiftDefinitionElement) MT549.U0098);
      MT549.U0099 = new SwiftTagSubItemDefinition("DataSource", "Data Source Scheme");
      MT549.U0097.Elements.Add((SwiftDefinitionElement) MT549.U0099);
      MT549.U009A = new SwiftTagSubItemDefinition("AccountTypeCode", "Account Type Code");
      MT549.U0097.Elements.Add((SwiftDefinitionElement) MT549.U009A);
      MT549.U009B = new SwiftTagSubItemDefinition("AccountNumber", "Account Number");
      MT549.U0097.Elements.Add((SwiftDefinitionElement) MT549.U009B);
      MT549.U0093.Elements.Add((SwiftDefinitionElement) MT549.U0097);
      MT549.U0002.Elements.Add((SwiftDefinitionElement) MT549.U0093);
      MT549.U009C = new SwiftTagDefinition("Indicator_A_22F", "Status");
      MT549.U009C.TagName = ":22F::";
      MT549.U009C.Mandatory = false;
      MT549.U009C.Multiple = true;
      MT549.U009D = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT549.U009C.Elements.Add((SwiftDefinitionElement) MT549.U009D);
      MT549.U009E = new SwiftTagSubItemDefinition("DataSource", "Data Source Scheme");
      MT549.U009C.Elements.Add((SwiftDefinitionElement) MT549.U009E);
      MT549.U009F = new SwiftTagSubItemDefinition("Indicator", "Indicator");
      MT549.U009C.Elements.Add((SwiftDefinitionElement) MT549.U009F);
      MT549.U0002.Elements.Add((SwiftDefinitionElement) MT549.U009C);
      MT549.U0001U0002 = new SwiftTagSequenceDefinition("Sequence_A1", "Linkages");
      MT549.U0001U0002.Mandatory = false;
      MT549.U0001U0002.Multiple = true;
      MT549.U0002U0002 = new SwiftTagDefinition("StartOfBlock_A1_16R", "Start of Block");
      MT549.U0002U0002.TagName = ":16R:LINK";
      MT549.U0003U0002 = new SwiftTagSubItemDefinition("StartOfBlock", "Start of Block");
      MT549.U0003U0002.Mandatory = false;
      MT549.U0002U0002.Elements.Add((SwiftDefinitionElement) MT549.U0003U0002);
      MT549.U0001U0002.Elements.Add((SwiftDefinitionElement) MT549.U0002U0002);
      MT549.U0004U0002 = new SwiftTagChoiceDefinition("Choice", "");
      MT549.U0004U0002.Mandatory = false;
      MT549.U0004U0002.Multiple = true;
      MT549.U0005U0002 = new SwiftTagDefinition("NumberIdentification_A1_13A", "Number Identification");
      MT549.U0005U0002.TagName = ":13A::";
      MT549.U0006U0002 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT549.U0005U0002.Elements.Add((SwiftDefinitionElement) MT549.U0006U0002);
      MT549.U0007U0002 = new SwiftTagSubItemDefinition("NumberId", "Number");
      MT549.U0005U0002.Elements.Add((SwiftDefinitionElement) MT549.U0007U0002);
      MT549.U0004U0002.Elements.Add((SwiftDefinitionElement) MT549.U0005U0002);
      MT549.U0008U0002 = new SwiftTagDefinition("NumberIdentification_A1_13B", "Number Identification");
      MT549.U0008U0002.TagName = ":13B::";
      MT549.U000EU0002 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT549.U0008U0002.Elements.Add((SwiftDefinitionElement) MT549.U000EU0002);
      MT549.U000FU0002 = new SwiftTagSubItemDefinition("DataSource", "Data Source Scheme");
      MT549.U0008U0002.Elements.Add((SwiftDefinitionElement) MT549.U000FU0002);
      MT549.U0010U0002 = new SwiftTagSubItemDefinition("Number_13B", "Number");
      MT549.U0008U0002.Elements.Add((SwiftDefinitionElement) MT549.U0010U0002);
      MT549.U0004U0002.Elements.Add((SwiftDefinitionElement) MT549.U0008U0002);
      MT549.U0001U0002.Elements.Add((SwiftDefinitionElement) MT549.U0004U0002);
      MT549.U0011U0002 = new SwiftTagDefinition("Reference_A1_20C", "Reference");
      MT549.U0011U0002.TagName = ":20C::";
      MT549.U0012U0002 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT549.U0011U0002.Elements.Add((SwiftDefinitionElement) MT549.U0012U0002);
      MT549.U0013U0002 = new SwiftTagSubItemDefinition("Reference", "Reference");
      MT549.U0011U0002.Elements.Add((SwiftDefinitionElement) MT549.U0013U0002);
      MT549.U0001U0002.Elements.Add((SwiftDefinitionElement) MT549.U0011U0002);
      MT549.U0014U0002 = new SwiftTagDefinition("EndOfBlock_A1_16S", "End of Block");
      MT549.U0014U0002.TagName = ":16S:LINK";
      MT549.U0015U0002 = new SwiftTagSubItemDefinition("EndOfBlock", "End of Block");
      MT549.U0015U0002.Mandatory = false;
      MT549.U0014U0002.Elements.Add((SwiftDefinitionElement) MT549.U0015U0002);
      MT549.U0001U0002.Elements.Add((SwiftDefinitionElement) MT549.U0014U0002);
      MT549.U0002.Elements.Add((SwiftDefinitionElement) MT549.U0001U0002);
      MT549.U0016U0002 = new SwiftTagDefinition("EndOfBlock_A_16S", "End of Block");
      MT549.U0016U0002.TagName = ":16S:GENL";
      MT549.U0017U0002 = new SwiftTagSubItemDefinition("EndOfBlock", "End of Block");
      MT549.U0017U0002.Mandatory = false;
      MT549.U0016U0002.Elements.Add((SwiftDefinitionElement) MT549.U0017U0002);
      MT549.U0002.Elements.Add((SwiftDefinitionElement) MT549.U0016U0002);
      MT549.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT549.U0002);
      MT549.U0018U0002 = new SwiftTagSequenceDefinition("SequenceB", "Statement by Status / Reason");
      MT549.U0018U0002.Mandatory = false;
      MT549.U0018U0002.Multiple = true;
      MT549.U0019U0002 = new SwiftTagDefinition("StartOfBlock_B_16R", "Start Of Block");
      MT549.U0019U0002.TagName = ":16R:BYSTAREA";
      MT549.U001AU0002 = new SwiftTagSubItemDefinition("StartOfBlock", "Start Of Block");
      MT549.U001AU0002.Mandatory = false;
      MT549.U0019U0002.Elements.Add((SwiftDefinitionElement) MT549.U001AU0002);
      MT549.U0018U0002.Elements.Add((SwiftDefinitionElement) MT549.U0019U0002);
      MT549.U001BU0002 = new SwiftTagDefinition("Status_B_25D", "Status");
      MT549.U001BU0002.TagName = ":25D::";
      MT549.U001BU0002.Mandatory = false;
      MT549.U001CU0002 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT549.U001BU0002.Elements.Add((SwiftDefinitionElement) MT549.U001CU0002);
      MT549.U001DU0002 = new SwiftTagSubItemDefinition("DataSource", "Data Source Scheme");
      MT549.U001BU0002.Elements.Add((SwiftDefinitionElement) MT549.U001DU0002);
      MT549.U001EU0002 = new SwiftTagSubItemDefinition("StatusCode", "Status Code");
      MT549.U001BU0002.Elements.Add((SwiftDefinitionElement) MT549.U001EU0002);
      MT549.U0018U0002.Elements.Add((SwiftDefinitionElement) MT549.U001BU0002);
      MT549.U001FU0002 = new SwiftTagDefinition("Reason_B_24B", "Reason");
      MT549.U001FU0002.TagName = ":24B::";
      MT549.U001FU0002.Mandatory = false;
      MT549.U001FU0002.Multiple = true;
      MT549.U007FU0002 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT549.U001FU0002.Elements.Add((SwiftDefinitionElement) MT549.U007FU0002);
      MT549.U0080U0002 = new SwiftTagSubItemDefinition("DataSource", "Data Source Scheme");
      MT549.U001FU0002.Elements.Add((SwiftDefinitionElement) MT549.U0080U0002);
      MT549.U0081U0002 = new SwiftTagSubItemDefinition("ReasonCode", "Reason Code");
      MT549.U001FU0002.Elements.Add((SwiftDefinitionElement) MT549.U0081U0002);
      MT549.U0018U0002.Elements.Add((SwiftDefinitionElement) MT549.U001FU0002);
      MT549.U0082U0002 = new SwiftTagDefinition("IdentificationOfFinancialInstrument_B_35B", "Identification Of Financial Instrument");
      MT549.U0082U0002.TagName = ":35B:";
      MT549.U0082U0002.Mandatory = false;
      MT549.U0082U0002.Multiple = true;
      MT549.U0083U0002 = new SwiftTagSubItemDefinition("IdentificationOfSecurity", "Identification Of Security");
      MT549.U0083U0002.Mandatory = false;
      MT549.U0084U0002 = new SwiftTagSubItemDefinition("IdentificationOfSecurity_1", "Identification Of Security");
      MT549.U0083U0002.Elements.Add((SwiftDefinitionElement) MT549.U0084U0002);
      MT549.U0082U0002.Elements.Add((SwiftDefinitionElement) MT549.U0083U0002);
      MT549.U0086U0002 = new SwiftTagSubItemDefinition("DescriptionOfSecurity", "Description Of Security");
      MT549.U0086U0002.Mandatory = false;
      MT549.U0082U0002.Elements.Add((SwiftDefinitionElement) MT549.U0086U0002);
      MT549.U0018U0002.Elements.Add((SwiftDefinitionElement) MT549.U0082U0002);
      MT549.U0087U0002 = new SwiftTagDefinition("EndOfBlock_B_16S", "End of Block");
      MT549.U0087U0002.TagName = ":16S:BYSTAREA";
      MT549.U0088U0002 = new SwiftTagSubItemDefinition("EndOfBlock", "End of Block");
      MT549.U0088U0002.Mandatory = false;
      MT549.U0087U0002.Elements.Add((SwiftDefinitionElement) MT549.U0088U0002);
      MT549.U0018U0002.Elements.Add((SwiftDefinitionElement) MT549.U0087U0002);
      MT549.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT549.U0018U0002);
      MT549.U0089U0002 = new SwiftTagSequenceDefinition("SequenceC", "Instruction Reference");
      MT549.U0089U0002.Mandatory = false;
      MT549.U0089U0002.Multiple = true;
      MT549.U008AU0002 = new SwiftTagDefinition("StartOfBlock_C_16R", "Start of Block");
      MT549.U008AU0002.TagName = ":16R:REF";
      MT549.U008BU0002 = new SwiftTagSubItemDefinition("StartOfBlock", "Start of Block");
      MT549.U008BU0002.Mandatory = false;
      MT549.U008AU0002.Elements.Add((SwiftDefinitionElement) MT549.U008BU0002);
      MT549.U0089U0002.Elements.Add((SwiftDefinitionElement) MT549.U008AU0002);
      MT549.U008CU0002 = new SwiftTagDefinition("Reference_C_20C", "Reference");
      MT549.U008CU0002.TagName = ":20C::";
      MT549.U008CU0002.Multiple = true;
      MT549.U008DU0002 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT549.U008CU0002.Elements.Add((SwiftDefinitionElement) MT549.U008DU0002);
      MT549.U008EU0002 = new SwiftTagSubItemDefinition("Reference", "Reference");
      MT549.U008CU0002.Elements.Add((SwiftDefinitionElement) MT549.U008EU0002);
      MT549.U0089U0002.Elements.Add((SwiftDefinitionElement) MT549.U008CU0002);
      MT549.U008FU0002 = new SwiftTagDefinition("EndOfBlock_C_16S", "End of Block");
      MT549.U008FU0002.TagName = ":16S:REF";
      MT549.U0090U0002 = new SwiftTagSubItemDefinition("EndOfBlock", "End of Block");
      MT549.U0090U0002.Mandatory = false;
      MT549.U008FU0002.Elements.Add((SwiftDefinitionElement) MT549.U0090U0002);
      MT549.U0089U0002.Elements.Add((SwiftDefinitionElement) MT549.U008FU0002);
      MT549.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT549.U0089U0002);
      MT549.U0091U0002 = new SwiftTagSequenceDefinition("SequenceD", "Additional Information");
      MT549.U0091U0002.Mandatory = false;
      MT549.U0092U0002 = new SwiftTagDefinition("StartOfBlock_D_16R", "Start of Block");
      MT549.U0092U0002.TagName = ":16R:ADDINFO";
      MT549.U0093U0002 = new SwiftTagSubItemDefinition("StartOfBlock", "Start of Block");
      MT549.U0093U0002.Mandatory = false;
      MT549.U0092U0002.Elements.Add((SwiftDefinitionElement) MT549.U0093U0002);
      MT549.U0091U0002.Elements.Add((SwiftDefinitionElement) MT549.U0092U0002);
      MT549.U0094U0002 = new SwiftTagChoiceDefinition("Choice", "");
      MT549.U0094U0002.Mandatory = false;
      MT549.U0094U0002.Multiple = true;
      MT549.U0095U0002 = new SwiftTagDefinition("Party_D_95P", "Party");
      MT549.U0095U0002.TagName = ":95P::";
      MT549.U0095U0002.Multiple = true;
      MT549.U0096U0002 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT549.U0095U0002.Elements.Add((SwiftDefinitionElement) MT549.U0096U0002);
      MT549.U0097U0002 = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT549.U0095U0002.Elements.Add((SwiftDefinitionElement) MT549.U0097U0002);
      MT549.U0094U0002.Elements.Add((SwiftDefinitionElement) MT549.U0095U0002);
      MT549.U0098U0002 = new SwiftTagDefinition("Party_D_95Q", "Party");
      MT549.U0098U0002.TagName = ":95Q::";
      MT549.U0098U0002.Multiple = true;
      MT549.U0099U0002 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT549.U0098U0002.Elements.Add((SwiftDefinitionElement) MT549.U0099U0002);
      MT549.U009AU0002 = new SwiftTagSubItemDefinition("NameAndAddress_95Q", "Name And Address");
      MT549.U0098U0002.Elements.Add((SwiftDefinitionElement) MT549.U009AU0002);
      MT549.U0094U0002.Elements.Add((SwiftDefinitionElement) MT549.U0098U0002);
      MT549.U009BU0002 = new SwiftTagDefinition("Party_D_95R", "Party");
      MT549.U009BU0002.TagName = ":95R::";
      MT549.U009BU0002.Multiple = true;
      MT549.U009CU0002 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT549.U009BU0002.Elements.Add((SwiftDefinitionElement) MT549.U009CU0002);
      MT549.U009DU0002 = new SwiftTagSubItemDefinition("DataSourceScheme", "");
      MT549.U009BU0002.Elements.Add((SwiftDefinitionElement) MT549.U009DU0002);
      MT549.U009EU0002 = new SwiftTagSubItemDefinition("ProprietaryCode", "Proprietary Code");
      MT549.U009BU0002.Elements.Add((SwiftDefinitionElement) MT549.U009EU0002);
      MT549.U0094U0002.Elements.Add((SwiftDefinitionElement) MT549.U009BU0002);
      MT549.U0091U0002.Elements.Add((SwiftDefinitionElement) MT549.U0094U0002);
      MT549.U009FU0002 = new SwiftTagDefinition("EndOfBlock_D_16S", "End of Block");
      MT549.U009FU0002.TagName = ":16S:ADDINFO";
      MT549.U0001U0003 = new SwiftTagSubItemDefinition("EndOfBlock", "End of Block");
      MT549.U0001U0003.Mandatory = false;
      MT549.U009FU0002.Elements.Add((SwiftDefinitionElement) MT549.U0001U0003);
      MT549.U0091U0002.Elements.Add((SwiftDefinitionElement) MT549.U009FU0002);
      MT549.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT549.U0091U0002);
    }

    public class SequenceAClass : SwiftTagSequence
    {
      internal override SwiftDefinitionElement Definition
      {
        get
        {
          return (SwiftDefinitionElement) MT549.U0002;
        }
      }

      [Description("Start of Block")]
      public Tag16R StartOfBlock_A_16R
      {
        get
        {
          return new Tag16R((SwiftElement) this, 0, (SwiftDefinitionElement) MT549.U0003);
        }
      }

      [Description("Start of Block")]
      public Tag16R Tag16R_StartOfBlock_A
      {
        get
        {
          return this.StartOfBlock_A_16R;
        }
      }

      [Description("Reference")]
      public Tag20C Reference_A_20C
      {
        get
        {
          return new Tag20C((SwiftElement) this, 0, (SwiftDefinitionElement) MT549.U0005);
        }
      }

      [Description("Reference")]
      public Tag20C Tag20C_Reference_A
      {
        get
        {
          return this.Reference_A_20C;
        }
      }

      [Description("Function of the Message")]
      public MT549.SequenceAClass.Tag23G FunctionOfTheMessage_A_23G
      {
        get
        {
          return new MT549.SequenceAClass.Tag23G((SwiftElement) this, 0, (SwiftDefinitionElement) MT549.U0008);
        }
      }

      [Description("Function of the Message")]
      public MT549.SequenceAClass.Tag23G Tag23G_FunctionOfTheMessage_A
      {
        get
        {
          return this.FunctionOfTheMessage_A_23G;
        }
      }

      [Description("Date/Time")]
      public Tag98A Date_A_98A
      {
        get
        {
          return new Tag98A((SwiftElement) this, 0, (SwiftDefinitionElement) MT549.U0011);
        }
      }

      [Description("Date/Time")]
      public Tag98A Tag98A_Date_A
      {
        get
        {
          return this.Date_A_98A;
        }
      }

      [Description("Date/Time")]
      public Tag98C DateTime_A_98C
      {
        get
        {
          return new Tag98C((SwiftElement) this, 0, (SwiftDefinitionElement) MT549.U0014);
        }
      }

      [Description("Date/Time")]
      public Tag98C Tag98C_DateTime_A
      {
        get
        {
          return this.DateTime_A_98C;
        }
      }

      [Description("Date/Time")]
      public MT549.SequenceAClass.Tag69A Date_A_69A
      {
        get
        {
          return new MT549.SequenceAClass.Tag69A((SwiftElement) this, 0, (SwiftDefinitionElement) MT549.U001A);
        }
      }

      [Description("Date/Time")]
      public MT549.SequenceAClass.Tag69A Tag69A_Date_A
      {
        get
        {
          return this.Date_A_69A;
        }
      }

      [Description("Date/Time")]
      public MT549.SequenceAClass.Tag69B DateTime_A_69B
      {
        get
        {
          return new MT549.SequenceAClass.Tag69B((SwiftElement) this, 0, (SwiftDefinitionElement) MT549.U001F);
        }
      }

      [Description("Date/Time")]
      public MT549.SequenceAClass.Tag69B Tag69B_DateTime_A
      {
        get
        {
          return this.DateTime_A_69B;
        }
      }

      [Description("Number Identification")]
      public MT549.SequenceAClass.Tag13A NumberIdentification_A_13A
      {
        get
        {
          return new MT549.SequenceAClass.Tag13A((SwiftElement) this, 0, (SwiftDefinitionElement) MT549.U0088);
        }
      }

      [Description("Number Identification")]
      public MT549.SequenceAClass.Tag13A Tag13A_NumberIdentification_A
      {
        get
        {
          return this.NumberIdentification_A_13A;
        }
      }

      [Description("Account Owner")]
      public MT549.SequenceAClass.Tag95P Party_A_95P
      {
        get
        {
          return new MT549.SequenceAClass.Tag95P((SwiftElement) this, 0, (SwiftDefinitionElement) MT549.U008C);
        }
      }

      [Description("Account Owner")]
      public MT549.SequenceAClass.Tag95P Tag95P_Party_A
      {
        get
        {
          return this.Party_A_95P;
        }
      }

      [Description("Account Owner")]
      public MT549.SequenceAClass.Tag95R Party_A_95R
      {
        get
        {
          return new MT549.SequenceAClass.Tag95R((SwiftElement) this, 0, (SwiftDefinitionElement) MT549.U008F);
        }
      }

      [Description("Account Owner")]
      public MT549.SequenceAClass.Tag95R Tag95R_Party_A
      {
        get
        {
          return this.Party_A_95R;
        }
      }

      [Description("Account")]
      public Tag97A Account_A_97A
      {
        get
        {
          return new Tag97A((SwiftElement) this, 0, (SwiftDefinitionElement) MT549.U0094);
        }
      }

      [Description("Account")]
      public Tag97A Tag97A_Account_A
      {
        get
        {
          return this.Account_A_97A;
        }
      }

      [Description("Account")]
      public Tag97B Account_A_97B
      {
        get
        {
          return new Tag97B((SwiftElement) this, 0, (SwiftDefinitionElement) MT549.U0097);
        }
      }

      [Description("Account")]
      public Tag97B Tag97B_Account_A
      {
        get
        {
          return this.Account_A_97B;
        }
      }

      [Description("Status")]
      public Tag22F[] Indicator_A_22F
      {
        get
        {
          int index = -1;
          List<Tag22F> list = new List<Tag22F>();
          int count;
          do
          {
            ++index;
            Tag22F tag22F = new Tag22F((SwiftElement) this, index, (SwiftDefinitionElement) MT549.U009C);
            count = this.ListTags((SwiftElement) tag22F).Count;
            if (count > 0)
              list.Add(tag22F);
          }
          while (count > 0);
          return list.ToArray();
        }
      }

      [Description("Status")]
      public Tag22F[] Tag22F_Indicator_A
      {
        get
        {
          return this.Indicator_A_22F;
        }
      }

      [Description("Linkages")]
      public MT549.SequenceAClass.Sequence_A1Class[] Sequence_A1
      {
        get
        {
          int index = -1;
          List<MT549.SequenceAClass.Sequence_A1Class> list = new List<MT549.SequenceAClass.Sequence_A1Class>();
          int count;
          do
          {
            ++index;
            MT549.SequenceAClass.Sequence_A1Class sequenceA1Class = new MT549.SequenceAClass.Sequence_A1Class((SwiftElement) this, index, false);
            count = this.ListTags((SwiftElement) sequenceA1Class).Count;
            if (count > 0)
              list.Add(sequenceA1Class);
          }
          while (count > 0);
          return list.ToArray();
        }
      }

      [Description("End of Block")]
      public Tag16S EndOfBlock_A_16S
      {
        get
        {
          return new Tag16S((SwiftElement) this, 0, (SwiftDefinitionElement) MT549.U0016U0002);
        }
      }

      [Description("End of Block")]
      public Tag16S Tag16S_EndOfBlock_A
      {
        get
        {
          return this.EndOfBlock_A_16S;
        }
      }

      internal SequenceAClass(SwiftElement parent, int index, bool createTags)
        : base(parent, index, createTags)
      {
      }

      public Tag22F AddIndicator_A_22F()
      {
        return new Tag22F((SwiftElement) this, this.Indicator_A_22F.Length, (SwiftDefinitionElement) MT549.U009C)
        {
          Value = string.Empty
        };
      }

      public void RemoveIndicator_A_22F(Tag22F tag)
      {
        this.RemoveTag(tag.GetTag());
      }

      public MT549.SequenceAClass.Sequence_A1Class AddSequence_A1()
      {
        return new MT549.SequenceAClass.Sequence_A1Class((SwiftElement) this, this.Sequence_A1.Length, true);
      }

      public void RemoveSequence_A1(MT549.SequenceAClass.Sequence_A1Class sequence)
      {
        foreach (SwiftTag tag in this.ListTags((SwiftElement) sequence))
          this.RemoveTag(tag);
      }

      public class Tag23G : SwiftTagWrapper
      {
        public string Value
        {
          get
          {
            return this.GetValue();
          }
          set
          {
            this.SetValue("23G", value);
          }
        }

        internal Tag23G(SwiftElement parent, int index, SwiftDefinitionElement definition)
          : base(parent, index, definition)
        {
        }
      }

      public class Tag69A : SwiftTagWrapper
      {
        public string Value
        {
          get
          {
            return this.GetValue();
          }
          set
          {
            this.SetValue("69A", value);
          }
        }

        internal Tag69A(SwiftElement parent, int index, SwiftDefinitionElement definition)
          : base(parent, index, definition)
        {
        }
      }

      public class Tag69B : SwiftTagWrapper
      {
        public string Value
        {
          get
          {
            return this.GetValue();
          }
          set
          {
            this.SetValue("69B", value);
          }
        }

        internal Tag69B(SwiftElement parent, int index, SwiftDefinitionElement definition)
          : base(parent, index, definition)
        {
        }
      }

      public class Tag13A : SwiftTagWrapper
      {
        public string Value
        {
          get
          {
            return this.GetValue();
          }
          set
          {
            this.SetValue("13A", value);
          }
        }

        internal Tag13A(SwiftElement parent, int index, SwiftDefinitionElement definition)
          : base(parent, index, definition)
        {
        }
      }

      public class Tag95P : SwiftTagWrapper
      {
        public string Value
        {
          get
          {
            return this.GetValue();
          }
          set
          {
            this.SetValue("95P", value);
          }
        }

        internal Tag95P(SwiftElement parent, int index, SwiftDefinitionElement definition)
          : base(parent, index, definition)
        {
        }
      }

      public class Tag95R : SwiftTagWrapper
      {
        public string Value
        {
          get
          {
            return this.GetValue();
          }
          set
          {
            this.SetValue("95R", value);
          }
        }

        internal Tag95R(SwiftElement parent, int index, SwiftDefinitionElement definition)
          : base(parent, index, definition)
        {
        }
      }

      public class Sequence_A1Class : SwiftTagSequence
      {
        internal override SwiftDefinitionElement Definition
        {
          get
          {
            return (SwiftDefinitionElement) MT549.U0001U0002;
          }
        }

        [Description("Start of Block")]
        public Tag16R StartOfBlock_A1_16R
        {
          get
          {
            return new Tag16R((SwiftElement) this, 0, (SwiftDefinitionElement) MT549.U0002U0002);
          }
        }

        [Description("Start of Block")]
        public Tag16R Tag16R_StartOfBlock_A1
        {
          get
          {
            return this.StartOfBlock_A1_16R;
          }
        }

        [Description("Number Identification")]
        public MT549.SequenceAClass.Tag13A NumberIdentification_A1_13A
        {
          get
          {
            return new MT549.SequenceAClass.Tag13A((SwiftElement) this, 0, (SwiftDefinitionElement) MT549.U0005U0002);
          }
        }

        [Description("Number Identification")]
        public MT549.SequenceAClass.Tag13A Tag13A_NumberIdentification_A1
        {
          get
          {
            return this.NumberIdentification_A1_13A;
          }
        }

        [Description("Number Identification")]
        public Tag13B NumberIdentification_A1_13B
        {
          get
          {
            return new Tag13B((SwiftElement) this, 0, (SwiftDefinitionElement) MT549.U0008U0002);
          }
        }

        [Description("Number Identification")]
        public Tag13B Tag13B_NumberIdentification_A1
        {
          get
          {
            return this.NumberIdentification_A1_13B;
          }
        }

        [Description("Reference")]
        public Tag20C Reference_A1_20C
        {
          get
          {
            return new Tag20C((SwiftElement) this, 0, (SwiftDefinitionElement) MT549.U0011U0002);
          }
        }

        [Description("Reference")]
        public Tag20C Tag20C_Reference_A1
        {
          get
          {
            return this.Reference_A1_20C;
          }
        }

        [Description("End of Block")]
        public Tag16S EndOfBlock_A1_16S
        {
          get
          {
            return new Tag16S((SwiftElement) this, 0, (SwiftDefinitionElement) MT549.U0014U0002);
          }
        }

        [Description("End of Block")]
        public Tag16S Tag16S_EndOfBlock_A1
        {
          get
          {
            return this.EndOfBlock_A1_16S;
          }
        }

        internal Sequence_A1Class(SwiftElement parent, int index, bool createTags)
          : base(parent, index, createTags)
        {
        }
      }
    }

    public class SequenceBClass : SwiftTagSequence
    {
      internal override SwiftDefinitionElement Definition
      {
        get
        {
          return (SwiftDefinitionElement) MT549.U0018U0002;
        }
      }

      [Description("Start Of Block")]
      public Tag16R StartOfBlock_B_16R
      {
        get
        {
          return new Tag16R((SwiftElement) this, 0, (SwiftDefinitionElement) MT549.U0019U0002);
        }
      }

      [Description("Start Of Block")]
      public Tag16R Tag16R_StartOfBlock_B
      {
        get
        {
          return this.StartOfBlock_B_16R;
        }
      }

      [Description("Status")]
      public Tag25D Status_B_25D
      {
        get
        {
          return new Tag25D((SwiftElement) this, 0, (SwiftDefinitionElement) MT549.U001BU0002);
        }
      }

      [Description("Status")]
      public Tag25D Tag25D_Status_B
      {
        get
        {
          return this.Status_B_25D;
        }
      }

      [Description("Reason")]
      public Tag24B[] Reason_B_24B
      {
        get
        {
          int index = -1;
          List<Tag24B> list = new List<Tag24B>();
          int count;
          do
          {
            ++index;
            Tag24B tag24B = new Tag24B((SwiftElement) this, index, (SwiftDefinitionElement) MT549.U001FU0002);
            count = this.ListTags((SwiftElement) tag24B).Count;
            if (count > 0)
              list.Add(tag24B);
          }
          while (count > 0);
          return list.ToArray();
        }
      }

      [Description("Reason")]
      public Tag24B[] Tag24B_Reason_B
      {
        get
        {
          return this.Reason_B_24B;
        }
      }

      [Description("Identification Of Financial Instrument")]
      public Tag35B[] IdentificationOfFinancialInstrument_B_35B
      {
        get
        {
          int index = -1;
          List<Tag35B> list = new List<Tag35B>();
          int count;
          do
          {
            ++index;
            Tag35B tag35B = new Tag35B((SwiftElement) this, index, (SwiftDefinitionElement) MT549.U0082U0002);
            count = this.ListTags((SwiftElement) tag35B).Count;
            if (count > 0)
              list.Add(tag35B);
          }
          while (count > 0);
          return list.ToArray();
        }
      }

      [Description("Identification Of Financial Instrument")]
      public Tag35B[] Tag35B_IdentificationOfFinancialInstrument_B
      {
        get
        {
          return this.IdentificationOfFinancialInstrument_B_35B;
        }
      }

      [Description("End of Block")]
      public Tag16S EndOfBlock_B_16S
      {
        get
        {
          return new Tag16S((SwiftElement) this, 0, (SwiftDefinitionElement) MT549.U0087U0002);
        }
      }

      [Description("End of Block")]
      public Tag16S Tag16S_EndOfBlock_B
      {
        get
        {
          return this.EndOfBlock_B_16S;
        }
      }

      internal SequenceBClass(SwiftElement parent, int index, bool createTags)
        : base(parent, index, createTags)
      {
      }

      public Tag24B AddReason_B_24B()
      {
        return new Tag24B((SwiftElement) this, this.Reason_B_24B.Length, (SwiftDefinitionElement) MT549.U001FU0002)
        {
          Value = string.Empty
        };
      }

      public void RemoveReason_B_24B(Tag24B tag)
      {
        this.RemoveTag(tag.GetTag());
      }

      public Tag35B AddIdentificationOfFinancialInstrument_B_35B()
      {
        return new Tag35B((SwiftElement) this, this.IdentificationOfFinancialInstrument_B_35B.Length, (SwiftDefinitionElement) MT549.U0082U0002)
        {
          Value = string.Empty
        };
      }

      public void RemoveIdentificationOfFinancialInstrument_B_35B(Tag35B tag)
      {
        this.RemoveTag(tag.GetTag());
      }
    }

    public class SequenceCClass : SwiftTagSequence
    {
      internal override SwiftDefinitionElement Definition
      {
        get
        {
          return (SwiftDefinitionElement) MT549.U0089U0002;
        }
      }

      [Description("Start of Block")]
      public Tag16R StartOfBlock_C_16R
      {
        get
        {
          return new Tag16R((SwiftElement) this, 0, (SwiftDefinitionElement) MT549.U008AU0002);
        }
      }

      [Description("Start of Block")]
      public Tag16R Tag16R_StartOfBlock_C
      {
        get
        {
          return this.StartOfBlock_C_16R;
        }
      }

      [Description("Reference")]
      public Tag20C[] Reference_C_20C
      {
        get
        {
          int index = -1;
          List<Tag20C> list = new List<Tag20C>();
          int count;
          do
          {
            ++index;
            Tag20C tag20C = new Tag20C((SwiftElement) this, index, (SwiftDefinitionElement) MT549.U008CU0002);
            count = this.ListTags((SwiftElement) tag20C).Count;
            if (count > 0)
              list.Add(tag20C);
          }
          while (count > 0);
          return list.ToArray();
        }
      }

      [Description("Reference")]
      public Tag20C[] Tag20C_Reference_C
      {
        get
        {
          return this.Reference_C_20C;
        }
      }

      [Description("End of Block")]
      public Tag16S EndOfBlock_C_16S
      {
        get
        {
          return new Tag16S((SwiftElement) this, 0, (SwiftDefinitionElement) MT549.U008FU0002);
        }
      }

      [Description("End of Block")]
      public Tag16S Tag16S_EndOfBlock_C
      {
        get
        {
          return this.EndOfBlock_C_16S;
        }
      }

      internal SequenceCClass(SwiftElement parent, int index, bool createTags)
        : base(parent, index, createTags)
      {
      }

      public Tag20C AddReference_C_20C()
      {
        return new Tag20C((SwiftElement) this, this.Reference_C_20C.Length, (SwiftDefinitionElement) MT549.U008CU0002)
        {
          Value = string.Empty
        };
      }

      public void RemoveReference_C_20C(Tag20C tag)
      {
        this.RemoveTag(tag.GetTag());
      }
    }

    public class SequenceDClass : SwiftTagSequence
    {
      internal override SwiftDefinitionElement Definition
      {
        get
        {
          return (SwiftDefinitionElement) MT549.U0091U0002;
        }
      }

      [Description("Start of Block")]
      public Tag16R StartOfBlock_D_16R
      {
        get
        {
          return new Tag16R((SwiftElement) this, 0, (SwiftDefinitionElement) MT549.U0092U0002);
        }
      }

      [Description("Start of Block")]
      public Tag16R Tag16R_StartOfBlock_D
      {
        get
        {
          return this.StartOfBlock_D_16R;
        }
      }

      [Description("Party")]
      public Tag95P[] Party_D_95P
      {
        get
        {
          int index = -1;
          List<Tag95P> list = new List<Tag95P>();
          int count;
          do
          {
            ++index;
            Tag95P tag95P = new Tag95P((SwiftElement) this, index, (SwiftDefinitionElement) MT549.U0095U0002);
            count = this.ListTags((SwiftElement) tag95P).Count;
            if (count > 0)
              list.Add(tag95P);
          }
          while (count > 0);
          return list.ToArray();
        }
      }

      [Description("Party")]
      public Tag95P[] Tag95P_Party_D
      {
        get
        {
          return this.Party_D_95P;
        }
      }

      [Description("Party")]
      public Tag95Q[] Party_D_95Q
      {
        get
        {
          int index = -1;
          List<Tag95Q> list = new List<Tag95Q>();
          int count;
          do
          {
            ++index;
            Tag95Q tag95Q = new Tag95Q((SwiftElement) this, index, (SwiftDefinitionElement) MT549.U0098U0002);
            count = this.ListTags((SwiftElement) tag95Q).Count;
            if (count > 0)
              list.Add(tag95Q);
          }
          while (count > 0);
          return list.ToArray();
        }
      }

      [Description("Party")]
      public Tag95Q[] Tag95Q_Party_D
      {
        get
        {
          return this.Party_D_95Q;
        }
      }

      [Description("Party")]
      public Tag95R[] Party_D_95R
      {
        get
        {
          int index = -1;
          List<Tag95R> list = new List<Tag95R>();
          int count;
          do
          {
            ++index;
            Tag95R tag95R = new Tag95R((SwiftElement) this, index, (SwiftDefinitionElement) MT549.U009BU0002);
            count = this.ListTags((SwiftElement) tag95R).Count;
            if (count > 0)
              list.Add(tag95R);
          }
          while (count > 0);
          return list.ToArray();
        }
      }

      [Description("Party")]
      public Tag95R[] Tag95R_Party_D
      {
        get
        {
          return this.Party_D_95R;
        }
      }

      [Description("End of Block")]
      public Tag16S EndOfBlock_D_16S
      {
        get
        {
          return new Tag16S((SwiftElement) this, 0, (SwiftDefinitionElement) MT549.U009FU0002);
        }
      }

      [Description("End of Block")]
      public Tag16S Tag16S_EndOfBlock_D
      {
        get
        {
          return this.EndOfBlock_D_16S;
        }
      }

      internal SequenceDClass(SwiftElement parent, int index, bool createTags)
        : base(parent, index, createTags)
      {
      }

      public Tag95P AddParty_D_95P()
      {
        return new Tag95P((SwiftElement) this, this.Party_D_95P.Length, (SwiftDefinitionElement) MT549.U0095U0002)
        {
          Value = string.Empty
        };
      }

      public void RemoveParty_D_95P(Tag95P tag)
      {
        this.RemoveTag(tag.GetTag());
      }

      public Tag95Q AddParty_D_95Q()
      {
        return new Tag95Q((SwiftElement) this, this.Party_D_95Q.Length, (SwiftDefinitionElement) MT549.U0098U0002)
        {
          Value = string.Empty
        };
      }

      public void RemoveParty_D_95Q(Tag95Q tag)
      {
        this.RemoveTag(tag.GetTag());
      }

      public Tag95R AddParty_D_95R()
      {
        return new Tag95R((SwiftElement) this, this.Party_D_95R.Length, (SwiftDefinitionElement) MT549.U009BU0002)
        {
          Value = string.Empty
        };
      }

      public void RemoveParty_D_95R(Tag95R tag)
      {
        this.RemoveTag(tag.GetTag());
      }
    }
  }
}
